package com.hmall.api.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * TODO
 *
 * @Author mr.zhao
 * @Date 2025/6/17 21:29
 */
@FeignClient("user-service")
public interface UserClient {

	@PutMapping("/users/money/deduct/inner")
	public void deductMoney(@RequestParam("userId") Long userId,@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
